<?php

namespace api\components\utils;


class Point
{
    /**
     * @var float 经度
     */
    public $lng;
    /**
     * @var float 纬度
     */
    public $lat;

    public function __construct($lng, $lat)
    {
        $this->lng = $lng;
        $this->lat = $lat;
    }

    public function equal(Point $point)
    {
        return $this->lng == $point->lng && $this->lat == $point->lat;
    }
}